package com.neuedu.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neuedu.entity.Register;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 挂号信息表 服务类
 * </p>
 *
 * @author LiYang
 * @since 2024-11-11
 */
public interface RegisterService extends IService<Register> {
    IPage<Register> list(Integer pageNo, Integer pageSize, String caseNumber, String realName, Long openId, Integer visitState);
    int getRegisterCount(LocalDate visitDate, String noon, Long employeeId);
    String add(Register register) throws AlipayApiException;
    String updatePay(HttpServletRequest request);
    Boolean call(Integer num, String realName);
    Register jiezhen(Integer registerId);
    Register getByCaseNumber(String caseNumber);

    List<Register> getByName(String realName);


    IPage<Register>  getRegisterByFinish(Integer pageNo, Integer pageSize, String caseNumber, String realName);

    Boolean cancelRegister(String caseNumber);
}
